import request from "@/utils/fetch"

export function studentSignUpOnline(params) {
    return request({
        url: '/qdjx/student/studentSignUpOnline.do',
        method: 'POST',
        data: params
    })
}

export function studentPdfGenerate() {
    return request({
        url: '/qdjx/student/studentPdfGenerate.do',
        method: 'GET'
    })
}

export function saveStudentContractPdf(params) {
    return request({
        url: '/qdjx/student/saveStudentContractPdf.do',
        method: 'POST',
        data: params
    })
}

export function getPinAnLink(params) {
    return request({
        url: '/qdjx/pab/getPabAutoLoginUrl.do',
        method: 'GET',
    })
}

export function createPinAnPreFreezeOrder(params) {
    return request({
        url: '/qdjx/pab/createPreFreezeOrder.do',
        method: 'POST',
    })
}

//获取招行的开户参数，页面利用返回参数拼接跳转链接
export function getZhaoShangLink(params) {
    return request({
        url: '/qdjx/cmb/openAccount.do',
        method: 'POST',
        data: params
    })
}

//获取招行的免密冻结签约 参数
export function signFreezeAgreement(params) {
    return request({
        url: '/qdjx/cmb/signFreezeAgreement.do',
        method: 'POST',
        data: params
    })
}

//二类户 充值缴费
export function recharge(params) {
    return request({
        url: '/qdjx/cmb/recharge.do',
        method: 'POST',
        data: params
    })
}

//一类户 充值缴费
export function fundfreeze(params) {
    return request({
        url: '/qdjx/cmb/fundfreeze.do',
        method: 'POST',
        data: params
    })
}

//参数校验接口
export function validStudentContractPdf(params) {
    return request({
        url: '/qdjx/student/validStudentContractPdf.do',
        method: 'POST',
        data: params
    })
}

//获取招行的支付参数
export function queryCmbConfigs(params) {
    return request({
        url: '/qdjx/cmb/queryCmbConfigs.do',
        method: 'POST',
        data: params
    })
}

//获取学员优惠金额
export function getPriceAndCheap(params) {
    return request({
        url: '/qdjx/student/getPriceAndCheap.do',
        method: 'get',
        params
    })
}


//上传日志
export function saveUrl(params) {
    return request({
        url: '/qdjx/cmb/saveUrl.do',
        method: 'POST',
        data: params
    })
}

//查询驾校违规记录
export function querySchoolPunishment(params) {
    return request({
        url: '/qdjx/baseinfo/querySchoolPunishment.do',
        method: 'get',
        params
    })
}


//平安微信支付
//上传日志
export function createCloudPayOrder(params) {
    return request({
        url: '/qdjx/pab/createCloudPayOrder.do',
        method: 'POST',
        data: params
    })
}

//招商微信支付
//获取支付参数
export function cmbUnionRecharge(params) {
    return request({
        url: '/qdjx/cmb/cmbUnionRecharge.do',
        method: 'POST',
        data: params
    })
}